package com.king.wxpay.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import java.util.List;

/**
 * 微信支付结果
 * @author taomk
 * @version 1.0
 * @since 15-7-10 下午4:08
 */
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class PrePayRes {

	/**
	 * 微信支付返回状态code
	 */
	private String return_code;
	/**
	 * 微信支付返回信息
	 */
	private String return_msg;
	/**
	 * 公众号
	 */
	private String appid;
	/**
	 * 商户号
	 */
	private String mch_id;
	/**
	 * 子商户号
	 */
	private String sub_mch_id;
	/**
	 * 随机数
	 */
	private String nonce_str;
	/**
	 * 签名
	 */
	private String sign;

	/**
	 * 结果code 一般为success fault
	 */
	private String result_code;
	/**
	 * 错误code
	 */
	private String err_code;
	/**
	 * 错误描述
	 */
	private String err_code_des;
	/**
	 * 可以支付的令牌
	 */
	private String prepay_id;
	/**
	 * 交易类型
	 */
	private String trade_type;

	private List<DownloadBillRes> wxBillEntries;

	public void setWxBillEntries(List<DownloadBillRes> wxBillEntries) {
		this.wxBillEntries = wxBillEntries;
	}

	public String getPrepay_id() {
		return prepay_id;
	}

	public void setPrepay_id(String prepay_id) {
		this.prepay_id = prepay_id;
	}

	public String getTrade_type() {
		return trade_type;
	}

	public void setTrade_type(String trade_type) {
		this.trade_type = trade_type;
	}

	public String getReturn_code() {
		return return_code;
	}

	public void setReturn_code(String return_code) {
		this.return_code = return_code;
	}

	public String getReturn_msg() {
		return return_msg;
	}

	public void setReturn_msg(String return_msg) {
		this.return_msg = return_msg;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	public String getSub_mch_id() {
		return sub_mch_id;
	}

	public void setSub_mch_id(String sub_mch_id) {
		this.sub_mch_id = sub_mch_id;
	}

	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getResult_code() {
		return result_code;
	}

	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}

	public String getErr_code() {
		return err_code;
	}

	public void setErr_code(String err_code) {
		this.err_code = err_code;
	}

	public String getErr_code_des() {
		return err_code_des;
	}

	public void setErr_code_des(String err_code_des) {
		this.err_code_des = err_code_des;
	}

	public List<DownloadBillRes> getWxBillEntries() {
		return wxBillEntries;
	}

}
